package seeders

import (
	"hyper/app/Models"
	"hyper/supports/database"
)

func createRoleData() {
	// 添加角色数据
	_role := []Models.Role{
		{Name: "超级管理员", Description: "超级管理员"},
		{Name: "普通用户", Description: "普通用户"},
		{Name: "站点管理员", Description: "站点管理员"},
		{Name: "发布人员", Description: "发布人员"},
		{Name: "运营总监", Description: "运营总监"},
		{Name: "编辑", Description: "编辑"},
	}
	//if !Models.IsExist() {
	// 添加菜单数据
	database.DB.Create(_role)
	//}
}
